package com.t309.tzy.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;

@Controller
@RequestMapping( "/goods" )
public class GoodsController {
    /*@Resource
    private IGoodsService goodsService;

    @GetMapping("/input")
    protected String demo() {
        //跳转到指定视图 //跳转到 input.jsp
        return "jsp/goodsinput";
    }

    @GetMapping( "/list" )
//  id:入参, model:出参
    public String getGoods(@RequestParam int id, Model model){
        //调用 Service层方法
        Goods goods = goodsService.getGoodsInfoById(733);
        //添加属性
        model.addAttribute("goods",goods);
        //指定视图名
        return "jsp/goodsList";
    }
*/


}
